<!-- main -->
<link href="<?=$this->data_url?>index_stor.css" rel="stylesheet" type="text/css" media="all" />

<body>

<h3 align="center"><?=$name?></h3>

<table class="datatable" align="center">
	<thead>
		<tr>
			<?
				foreach($this->paged_data[0] as $k => $v)
					echo '<th>'.$k.'</th>';
			?>
			<!-- <th><a class="btn_add" href="<?=$this->base_url?>edit" title="Append storage" style="float:right">A</a></th> -->
		</tr>
	</thead>

	<?
		foreach($this->paged_data as $row)
		{
			echo '<tr>';
			foreach($row as $k => $v)
			{
				echo '<td>'.$v.'</td>';
			}
			echo '</th>';
		}
	?>
</table>	

<br>
<a href="<?=$this->base_url?>">Back</a>

<script>
	jQuery('.my_ui_table .btn_add').button({icons:{primary:'ui-icon-circle-plus'}, text:false});
	jQuery('.my_ui_table .btn_edit').button({icons:{primary:'ui-icon-pencil'}, text:false});
	jQuery('.my_ui_table .btn_del').button({icons:{primary:'ui-icon-trash'}, text:false});
	jQuery('.my_ui_table #btn_set').button({icons:{primary:'ui-icon-circle-check'}, text:false}).width('16px').height('16px');
	// Подсветка строки таблицы.
	jQuery('.datatable tbody tr').mouseover( function() {jQuery(this).addClass('hover'); }) ;
	jQuery('.datatable tbody tr').mouseout( function() {jQuery(this).removeClass('hover'); }) ;
</script>

</body>
</html>